package com.kylin.common.paginate;

import java.util.ArrayList;
import java.util.List;

import org.displaytag.pagination.PaginatedList;
import org.displaytag.properties.SortOrderEnum;

public class DisplayPage implements PaginatedList{

	private String searchId;

	private int objectsPerPage;
	
	private int fullListSize;
	
	private int pagenumber;
	
	private List list = new ArrayList();
	
	private String sortCriterion;

	private SortOrderEnum sortOrderEnum;
	
	public DisplayPage(int size,int pageNum){
		this.objectsPerPage = size;
		this.pagenumber = pageNum;
	}
	
	public int getFullListSize() {
		return fullListSize;
	}
	
	public void setFullListSize(int size) {
		this.fullListSize = size;
	}

	public List getList() {
		return list;
	}

	public void setList(List rows){
		this.list = rows;
	}
	
    /*  
	 * 
	 * @return
	 */
	public int getObjectsPerPage() {
		return this.objectsPerPage;
	}

	public void setObjectsPerPage(int objectsPerPage) {
		this.objectsPerPage = objectsPerPage;
	}

	public String getSortCriterion() {
		return this.sortCriterion;
	}

	public void setSortCriterion(String sortCriterion) {
		this.sortCriterion = sortCriterion;
	}

	public SortOrderEnum getSortDirection() {
		return this.sortOrderEnum;
	}

	public void setSortDirection(SortOrderEnum so) {
		this.sortOrderEnum = so;
	}

	public void setSearchId(String searchId) {
		this.searchId = searchId;
	}

	public String getSearchId() {
		return searchId;
	}

	public int getPageNumber() {
		return pagenumber;
	}

	public void setPageNumber(int pagenumber) {
		this.pagenumber = pagenumber;
	}
	

}
